import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class GridViewEx extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('GridView 使用'),),
      body: GridView.count(crossAxisCount: 2,
      children: List.generate(100, (index) => Center(
      child: Text('Item $index', style: Theme.of(context).textTheme.headline,),)),),
    );
  }
}